package com.xyy.saas.payment.adpater.fumin;

import com.xyy.saas.payment.callback.core.handler.CastRequestHandler;
import com.xyy.saas.payment.common.Constants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author: wuqiongda
 * @Date: 2019/12/17 19:14
 */
@Component
@Slf4j
public class CastFMRequestHandler implements CastRequestHandler {
    @Autowired
    private CastYBMFMRequestHandler castYBMFMRequestHandler;

    @Override
    public String getChannel() {
        return Constants.CHANNEL_FUMIN_BANK_NAME;
    }

    @Override
    public Object castRequestHandler(String method, Map<String, String> request, HttpServletRequest requestMsg) throws Exception {
        return castYBMFMRequestHandler.castRequestHandler(method, request, requestMsg);
    }
}

